class CommonEntityEntity {
  CommonEntityData data;
  int code;
  String msg;

  CommonEntityEntity({this.data, this.code, this.msg});

  CommonEntityEntity.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null
        ? new CommonEntityData.fromJson(json['data'])
        : null;
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data']['list'] = this.data.toJson();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class CommonEntityData {
  List<CommonEntityDataData> datas;

  CommonEntityData();

  CommonEntityData.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      datas = new List<CommonEntityDataData>();
      (json['list'] as List).forEach((v) {
        datas.add(new CommonEntityDataData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.datas != null) {
      data['list'] = this.datas.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class CommonEntityDataData {
// id
// 收货地址ID
// user_id
// 用户ID
// point
// 省份
// all_point
// 城市
// action_zh
// 城市
// action
// 详细地址
// company
// 单位名称
// consignee
// 收件人
// action_symbol
// 联系电话
// postcode
// 邮编
// create_time
// 是否为默认地址 Y是 N否

  String id;
  String user_id;
  String point;
  String all_point;
  String action_zh;
  String action;
  String consignee;
  String action_symbol;
  String create_time;
  String pay_method;
  String money;
    String title;

  String pay_method_zh;
  CommonEntityDataData(
      {this.id,
      this.user_id,
      this.money,
      this.pay_method,
      this.pay_method_zh,
      this.point,
      this.all_point,
      this.action_zh,
      this.action,
      this.consignee,
      this.action_symbol,
      this.create_time});

  CommonEntityDataData.fromJson(Map<String, dynamic> json) {
    id = json['id'].toString();
    pay_method = json['pay_method'];
    title=json['title'].toString();
    pay_method_zh = json['pay_method_zh'];
    money = json['money'].toString();
    user_id = json['user_id'].toString();
    point = json['point'].toString();
    all_point = json['all_point'].toString();
    action_zh = json['action_zh'];
    action = json['action'].toString();
    consignee = json['consignee'];
    action_symbol = json['action_symbol'];
    create_time = json['create_time'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.user_id;
    data['point'] = this.point;
    data['all_point'] = this.all_point;
    data['action_zh'] = this.action_zh;
    data['action'] = this.action;
    data['action_symbol'] = this.action_symbol;
    data['consignee'] = this.consignee;
    data['create_time'] = this.create_time;

    return data;
  }
}
